package main

import (
	"fmt"
	"time"
)

func main() {

	t := map[string]int{
		"aa": 3,
		"bb": 44,
	}
	fmt.Println(t)
	//for i := 0; i <= 100; i++ {
	//	go func() {
	//		val, ok := t["aa"]
	//		fmt.Println("val-------", val, "-------ok-------", ok)
	//	}()
	//}
	go func() {
		for {
			fmt.Println(123)
			time.Sleep(time.Second * 2)
		}
	}()
	//for c := 0; c <= 100; c++ {
	//	go func() {
	//		t["bb"] = 1
	//		fmt.Println("c-------", 1)
	//	}()
	//}
	select {}
}

func start() {
	go aa()
}

func aa() {
	for {
		fmt.Println("11111")
		time.Sleep(time.Minute)
	}
}
